package com.isscollage.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.isscollage.entity.Concat;
import com.isscollage.entity.Passenger;
import com.isscollage.entity.Users;
import com.isscollage.search.PassengerSearch;

public interface UserDao {

	public Concat checkCardNo(String carNo) ;
	
	public List<Passenger> searchByCon(PassengerSearch search);
	
	public Passenger getPassengerById(Integer passengerId);
	
	public boolean update(Passenger passenger);
	
	public boolean insert(Passenger passenger);
	
	public boolean deleteAll(@Param("ids") Integer[] ids);
	
	@Select("select * from pw_passenger where flag=0 and create_id=#{userId}")
	public List<Passenger> searchAllPassengers(String userId);
	
	public Users getUserByUserId(String userId);
	
	public boolean updateUser(Users user);
	
}
